[MUSIC]
Hello and welcome to this demonstration on running two parallel processes
using a parallel activity. [MUSIC] In this video, you will learn to create
a workflow that will write text in two different note pads simultaneously. [MUSIC] So let's begin. [MUSIC] Create notepad files with
the names foreground dot txt [MUSIC] and background dot txt on the desktop. [MUSIC] Open these notepad files. [MUSIC] Search for a parallel activity
in the activities panel and drag and drop it in the designer panel. Rename the sequence activity as
parallel and add an annotation to it. Rename the parallel activity as writes
text in two different note pads. [MUSIC] Now insert two sequence activities in
the parallel activity and rename them. [MUSIC] Insert a type into activity in
both the sequence activities. [MUSIC] Rename them. [MUSIC] Click the indicator on screen link
of the first type into activity. Indicate the editor area of
the foreground dot txt file. [MUSIC] Navigate to the properties panel
of this type into activity. Click the ellipsis icon of the text
property to open the expression editor. Enter a few sentences in it. [MUSIC]. Click OK. [MUSIC] Click the indicator on screen link
of the second type into activity and indicate the editor area of
the background dot txt file. Navigate to the properties panel
of this type into activity. Click the ellipsis icon of the text
property to open the expression editor. Enter a few sentences in it. [MUSIC] Click OK. [MUSIC] Now save the project and run it. [MUSIC] The text is written in the foreground
dot txt file first and then in the background dot txt file. Both the type into activities are not
running in parallel because they are running in the foreground. Please note that you can run
multiple parallel processes but only in the background. In the foreground,
you can run only one process at a time. To run the second type into
activity in the background, go to its properties and said it send
window messages property to true. Send window messages helps in
running a process in the background. So in the parallel activity,
one process will run in the foreground and another will run in
the background simultaneously. Save the project and run it. Thank you for watching. [MUSIC] You can see that the text gets written
in both the note pads at the same time. So this concludes our video on
parallel activity in studio. It is encouraged to create
the workflow as demonstrated and run two parallel processes
using this activity. Thank you for watching. [MUSIC]